import request from '@/utils/request'
const serviceName = 'Estate'
//  列表
export function queryOwners(data) {
  return request({
    url: serviceName + '/RoomOwner/QueryRoomOwners',
    method: 'post',
    data
  })
}
//  详情
export function getOwner(data) {
  return request({
    url: serviceName + '/RoomOwner/GetRoomOwner',
    method: 'post',
    data
  })
}
//  新增 修改
export function saveOwner(data) {
  return request({
    url: serviceName + '/RoomOwner/SaveRoomOwner',
    method: 'post',
    data
  })
}
//  删除
export function deleteOwners(data) {
  return request({
    url: serviceName + '/RoomOwner/DeleteRoomOwners',
    method: 'post',
    data
  })
}

//  导入
export function importRoomOwner(data) {
  return request({
    url: serviceName + '/RoomOwner/ImportRoomOwner',
    method: 'post',
    data
  })
}
export default {
  queryOwners,
  getOwner,
  saveOwner,
  deleteOwners,
  importRoomOwner
}
